$(function() {
    layui.use('form', function() {
        var form = layui.form;
        // var upload = layui.upload
        var layer = layui.layer
            //  layer.msg('玩命卖萌中~', function(){
                //关闭后的操作
            //    });

        //监听提交
        form.on('submit(login)', function(data) {
            // alert(888)
            layer.msg('登陆成功')

            location.href = 'index.html'

            return false;
        });

    });
    $('#particles').particleground();
})